#{extends 'main.html' /}
<div style="margin-top: 10px;display: none;" id="queryDiv">
	科室搜索：<input id="queryDeptName" name="queryDeptName" type="text"
		value="" size="13" onkeydown="EnterPress2(event)" />&nbsp;&nbsp;
	&nbsp;&nbsp;&nbsp;&nbsp; 人员检索：<input id="queryByName"
		name="queryByName" type="text" value="" size="13"
		onkeydown="EnterPress(event)" /> </br>
	<br />
</div>

<script src="/public/javascripts/views/user.js" type="text/javascript"></script>
<div class="l-clear"></div>
<div id="maingrid" style="margin-top: 1px"></div>
<br />
<div style="display: none;"></div>
<div id="detail" style="display: none;">
	<form id="detailForm" action="" method="post" class="l-form">
		<input type="hidden" name="user.id" id="id" value="">
		<ul>
			<li style="width: 90px; text-align: left;">姓名：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text"
					validate="{specialCharValidate:false,required:true,minlength:2,maxlength:30}"
						id="realName"
						name="user.realName" ltype="text" class="l-text-field">
			</li>
			<li style="width: 20px;"></li>
			<li style="width: 90px; text-align: left;">性别：</li>
			<li style="width: 200px; text-align: left;">
				<select name="user.sex" id="sex" style="width: 200px;">
					<option value="男">男</option>
					<option value="女">女</option>
				</select>
			</li>
		</ul>
		<ul>
			<li style="width: 90px; text-align: left;">民族：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text" name="user.nation" ltype="text" id="nation"
					class="l-text-field">
			</li>
			<li style="width: 20px;"></li>
			<li style="width: 90px; text-align: left;">住址：</li>
			<li style="width: 200px; text-align: left;">
				<input name="user.address" ltype="text" id="address"
					class="l-text-field" validate="{required:false}">
			</li>
			
		</ul>
		<ul>
			<li style="width: 90px; text-align: left;">出生日期：</li>
			<li style="width: 200px; text-align: left;">
				<input name="user.birthday" ltype="date" format="yyyy-MM-dd"
					class="l-text-field" validate="{required:false}" id="birthday">
			</li>
			<li style="width: 20px;"></li>
			<li style="width: 90px; text-align: left;">入职时间：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text" id="jobInTime" name="user.jobInTime" ltype="date"
					class="l-text-field">
			</li>
		</ul>
		
		<ul>
			<li style="width: 90px; text-align: left;">邮箱：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text"	validate="{maxlength:50,email:true}" id="email" name="user.email"
					ltype="text" class="l-text-field">
			</li>
			<li style="width: 20px;"></li>
			<li style="width: 90px; text-align: left;">电话：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text" validate="{maxlength:20}" id="tel" name="user.tel"
					ltype="text" class="l-text-field">
			</li>
		</ul>
		
		<ul>
			<li style="width: 90px; text-align: left;">政治面貌：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text" validate="{maxlength:50}" id="politics"
					name="user.politics" ltype="text" class="l-text-field">
			</li>
			<li style="width: 20px;"></li>
			<li style="width: 90px; text-align: left;">入党时间：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text" validate="{required:false}" id="joinPartyTime"
					name="user.joinPartyTime" ltype="date" class="l-text-field">
			</li>
		</ul>

		<ul>
			<li style="width: 90px; text-align: left;">排序号：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text" id="orderNum"
					name="user.orderNum" ltype="digits" class="l-text-field">
			</li>
		</ul>
		<div class="l-group l-group-hasicon">
			登录信息
		</div>
		<ul>
			<li style="width: 90px; text-align: left;">用户名：</li>
			<li style="width: 200px; text-align: left;">
				<input type="text"
					validate="{specialCharValidate:false,required:true,minlength:2,maxlength:30}"
					id="name" name="user.name"
					ltype="text" class="l-text-field">
			</li>
			<li style="width: 20px;"></li>
			<li style="width: 90px; text-align: left;">科室：</li>
			<li style="width: 200px; text-align: left;">
				<select name="user.dept.id" id="deptCombox">
					#{list depts, as:'dept'}
					<option value="${dept.id}" dType="${dept.type}">${dept.name}</option>
					#{/list}
				</select>
			</li>
		</ul>
		<ul>
			<li style="width: 90px; text-align: left;">角色：</li>
			<li style="width: 400px; text-align: left;">
				#{list roles,as:'role'}
					<span style="width: 120px;margin-left:10;display: inline;float: left;">
						<input id="role_${role_index}" name='roleId' type="checkbox" class='role' value="${role.id}"/>
						<label for="role_${role_index}">${role.name}</label>
					</span>
					#{if role_index%3==0}
						<br/>
					#{/if}
				#{/list}
			</li>
		</ul>
		<input name="roleStr" id="roleStr" type="hidden"/>
	</form>
</div>